using System.IO;

namespace mOceanWindows{
	
	using System;
	
	// File logger class 
	public class FileLogger: Logger 
    {
	    private String _path;
        public FileLogger (String path)
        {
            _path = path;
        }

	    public String Path
	    {
	        get
	        {
                return _path;
	        }
            set
            {
                _path = value;
            }
	    }

        protected override void WriteOut(String str)
        {
            try
            {
                using (StreamWriter txt = new StreamWriter(_path, true))
                {
                    txt.WriteLine(str);
                }
            }
            catch
            {}
        }
		
	}
}
